#-*- coding:utf-8 -*-
# 导入单元测试包
import unittest
# 导入单元测试
from unittests import welcome,login
# 导入os包
import os

# 导入自动化测试报告
import HTMLTestRunner

# 实例化suit
suit = unittest.TestSuite()

# 将单元测试加入到测试添加里面
# suit.addTest(unittest.makeSuite(welcome.Welcome))
suit.addTest(unittest.makeSuite(login.Login))


# 获取suit路径
files = os.getcwd() + "/qiezi.html"
# 指定读写格式
filename = open(files,"wb")


# 运行单元测试
runner = HTMLTestRunner.HTMLTestRunner(stream=filename,title=u"茄子",description=u"茄子用例")

runner.run(suit)
